<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Vite + Vue</title>
  <script type=text/javascript src="./assets/index.0583ae01.js"></script>
</head>

<body onload="init()">
  <div id="app">hello</div>

</body>
<script>

  function init() {
    this.sv = new window.QueryEchart.QueryEchart({
      dom: '#app',
      title: '测试demo',
      onChange: change
    })
    console.log(sv);
  }

  function change() {
    console.log('change');
    this.sv.title = '我是更改后的标题'
    this.sv.render();
  }
</script>

</html>